#ifndef _SOCKETIO_H
#define _SOCKETIO_H
#include "Message.h"
class SocketIO
{
public:
    SocketIO(int);
    int readn(char *buf, int len);
    int sendn(const char *buf, int len);
    int readline(char *buf, int max);
    int recvPeek(char *buf, int max);
    int readPacket(Packet & packet);

private:
    int _fd;
};

#endif
